package com.pic.others.domain.dto.note;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class NoteDTO implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "noteId", type = IdType.ASSIGN_ID)
    private Long noteId;
    private LocalDate createTime;
    private Long userId;
    private String noteContent;
    private List<String> locates;
}
